/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.close.basic.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.common.core.util.DateUtils;
import com.hopes.boss.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

/**
 * 处理审核记录表
 *
 * @author pig
 * @date 2024-01-22 17:39:25
 */
@Data
@TableName(value = "closed_operate_audit_record", excludeProperty = "tenantId")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "处理审核记录表")
public class ClosedOperateAuditRecordEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="ID")
    private Long id;

	/**
	* 审核对象Id
	*/
    @Schema(description="审核对象Id")
    private Long objId;

	/**
	* 处理时间
	*/
    @Schema(description="处理时间")
    private Date handleTime;

	/**
	* 处理人Id
	*/
    @Schema(description="处理人Id")
    private Long handleUserId;

	/**
	* 处理人姓名
	*/
    @Schema(description="处理人姓名")
    private String handleUserName;

	/**
	* 操作名称
	*/
    @Schema(description="操作名称")
    private String handleOperate;

	/**
	* 操作结果
	*/
    @Schema(description="操作结果")
    private String handleOperateRes;

	/**
	* 操作描述
	*/
    @Schema(description="操作描述")
    private String handleOperateDesc;

	/**
	* 操作备注
	*/
    @Schema(description="操作备注")
    private String handleOperateRemark;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;


	public String getCreateTimeStr() {
		final Date date = Date.from(this.getCreateTime().atZone(ZoneId.systemDefault()).toInstant());
		return DateUtils.limitSecond(date);
	}

}
